package org.project.d.starter.network.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lin
 * @version V1.0
 * @description
 * @date 2020/9/22 3:03 下午
 */
@ConfigurationProperties("project.d.network")
public class ProjectNetworkProperties {
    private boolean startTcpServer;
    private int tcpPort;
    private boolean startUdpServer;
    private int udpPort;
    private String tcpHost;
    private String udpHost;

    private String tcpServerName;
    private String udpServerName;

    public boolean isStartTcpServer() {
        return startTcpServer;
    }

    public void setStartTcpServer(boolean startTcpServer) {
        this.startTcpServer = startTcpServer;
    }

    public int getTcpPort() {
        return tcpPort;
    }

    public void setTcpPort(int tcpPort) {
        this.tcpPort = tcpPort;
    }

    public boolean isStartUdpServer() {
        return startUdpServer;
    }

    public void setStartUdpServer(boolean startUdpServer) {
        this.startUdpServer = startUdpServer;
    }

    public int getUdpPort() {
        return udpPort;
    }

    public void setUdpPort(int udpPort) {
        this.udpPort = udpPort;
    }

    public String getTcpHost() {
        return tcpHost;
    }

    public void setTcpHost(String tcpHost) {
        this.tcpHost = tcpHost;
    }

    public String getUdpHost() {
        return udpHost;
    }

    public void setUdpHost(String udpHost) {
        this.udpHost = udpHost;
    }

    public String getTcpServerName() {
        return tcpServerName;
    }

    public void setTcpServerName(String tcpServerName) {
        this.tcpServerName = tcpServerName;
    }

    public String getUdpServerName() {
        return udpServerName;
    }

    public void setUdpServerName(String udpServerName) {
        this.udpServerName = udpServerName;
    }
}
